package com.example.auto.config;

import com.api.signature.auto.dao.ApiSignDao;
import com.api.signature.auto.spring.ApiSignContext;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Jerry
 * @date 2024-01-24 17:23
 */
@Component
public class Runner implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        ApiSignDao apiSignDao = ApiSignContext.getApiSignDao();
        Map<String, String> data = new HashMap<>();
        data.put("secretKey", "qazwqsx4836...");
        apiSignDao.setObject("1", data, -1);
    }
}
